# -*- coding: utf-8 -*-
# windows 下如果出现编码问题，将 utf-8 改为 cp936
import random

def redPocket(people, money):
    result = []
    remain = people
    # 设定每次随机的上限（剩下平均值的两倍）
    max_money = money / people * 2
    for i in range(people):
        remain -= 1
        if remain > 0:
            # 随机值的范围，大于等于1，小于等于上限，并保证剩下的人至少能拿到1分钱
            m = random.randint(1, min(money - remain, max_money))
        else:
            m = money
        money -= m
        result.append(m / 100.0)
    return result

# 获取输入
people = int(input('红包个数:\n'))
money = int(input('总金额:\n') * 100)
# 计算并输出
print redPocket(people, money)
